import request from '@/utils/request'

export function getMyPaperList(data) {
  return request({
    url: '/art/export',
    method: 'post',
    data
  })
}
export function getUserArts(data) {
  return request({
    url: '/art/UserGetRelateArt',
    method: 'post',
    data
  })
}

export function thesis_add(data) {
  return request({
    url: '/art/addArt',
    method: 'post',
    data
  })
}

export function thesis_add2(data) {
  return request({
    url: '/art/UpdateArt',
    method: 'post',
    data
  })
}

export function thesis_delete(ArtID) {
  return request({
    url: '/art/DeleteArt',
    method: 'get',
    params: { ArtID }
  })
}

export function thesis_commit(artID) {
  return request({
    url: '/art/ReCommitArt',
    method: 'get',
    params: { artID }
  })
}

export function get_thesis_author(id) {
  return request({
    url: '/art_author/selectAllAuthor',
    method: 'get',
    params: { id }
  })
}

export function thesis_author_add(data) {
  return request({
    url: '/art_author/addArtAuthor',
    method: 'post',
    data
  })
}

export function thesis_author_edit(data) {
  return request({
    url: '/art_author/updateArtAuthor',
    method: 'post',
    data
  })
}

export function thesis_author_delete(id) {
  return request({
    url: '/art_author/deleteArtAuthor',
    method: 'get',
    params: { id }
  })
}

// 院级审核
export function get_thesis_yuanji(data) {
  return request({
    url: '/art/CollegeUserGetArt',
    method: 'post',
    data
  })
}

export function thesis_pass_yuanji(AID) {
  return request({
    url: '/art/CollegeCheckPass',
    method: 'get',
    params: { AID }
  })
}

export function thesis_back_yuanji(data) {
  return request({
    url: '/art/CollegeCheckBack',
    method: 'post',
    data
  })
}

// 校级审核
export function get_thesis_xiaoji(data) {
  return request({
    url: '/art/SchoolUserGetArt',
    method: 'post',
    data
  })
}

export function thesis_pass_xiaoji(AID) {
  return request({
    url: '/art/SchoolCheckPass',
    method: 'get',
    params: { AID }
  })
}

export function thesis_back_xiaoji(data) {
  return request({
    url: '/art/SchoolCheckBack',
    method: 'post',
    data
  })
}

export function update_thesis_source(data) {
  return request({
    url: '/artqulification/upArtScore',
    method: 'post',
    data
  })
}

// 附件
export function file_add(data) {
  return request({
    url: '/art/addArtfile',
    method: 'post',
    data
  })
}

export function get_file(id) {
  return request({
    url: '/art/pageArtfileCondition',
    method: 'get',
    params: { id }
  })
}

export function file_delete(id) {
  return request({
    url: '/art/DeleteArtfile',
    method: 'get',
    params: { id }
  })
}

export function file_update(data) {
  return request({
    url: '/art/updateArtfile',
    method: 'post',
    data
  })
}

// 量化
export function getCascadingData(params) {
  return request({
    url: '/arttype/getCascadingData',
    method: 'get',
    params
  })
}

export function getQulification(ArtID) {
  return request({
    url: '/artqulification/getArtQulification',
    method: 'get',
    params: { ArtID }
  })
}

export function deleteQulification(ArtQualificationID) {
  return request({
    url: '/artqulification/deleteArtQulification',
    method: 'get',
    params: { ArtQualificationID }
  })
}

export function addQulification(data) {
  return request({
    url: '/artqulification/addArtQualification',
    method: 'post',
    data
  })
}

export function GetById(artID) {
  return request({
    url: '/art/GetArtById',
    method: 'get',
    params: { artID }
  })
}

export function GetArtDTOById(artID) {
  return request({
    url: '/art/GetArtDTOById',
    method: 'get',
    params: { artID }
  })
}

// 撤回专利
export function thesis_withdraw(artID) {
  return request({
    url: '/art/WithdrawArt',
    method: 'get',
    params: { artID }
  })
}
